package com.groupbuying.store.dao;

import com.groupbuying.store.domain.StoreCapitalVirtualAccountDO;
import com.groupbuying.store.utils.apiresult.ApiResult;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * 商户虚拟资金账号
 * @author wenguoqiang
 * @email 17081@mengtaigroup.com
 * @date 2019-01-24 10:30:45
 */
@Mapper
@Repository
public interface StoreCapitalVirtualAccountDao {

	StoreCapitalVirtualAccountDO get(String uuid);
	
	List<StoreCapitalVirtualAccountDO> list(Map<String, Object> map);
	
	int count(Map<String, Object> map);
	
	int save(StoreCapitalVirtualAccountDO storeCapitalVirtualAccount);
	
	int update(StoreCapitalVirtualAccountDO storeCapitalVirtualAccount);
	
	int remove(String uuid);
	
	int batchRemove(String[] uuids);

	BigDecimal getByStorUUid(String storUUid);

	int updateMoney(Map<String, Object> map);

	/*虚拟账号支付密码查询*/
	Map virtualAccountPassword(Map<String, Object> params);

    /*通过收银台Id查询虚拟账号支付密码查询*/
    String getAccontPwdByCounterId(String counterId);
}
